<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";
//echo getcwd();
//echo basename(getcwd());
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/view/Register/RegisterPackDraw.php");


$action="RegisterPackSave.php";$name="formulario_registro";$method="post";$NAME="REGISTRO";

RegisterPackDraw::getInstance()->DrawHead($action,$name,$method,$NAME);


$items=array("NamOpe"=>"Nombre del operador","DirOpe"=>"Direccion del operador","MailOpe"=>"Direccion-mail",
"PhoOpe"=>"Telefono del operador","CodPosOpe"=>"Codigo postal","WebSitOp"=>"Sitio Web");
RegisterPackDraw::getInstance()->DrawTextBox($items);

$NAMEbox="Ciudad";
$campos_table=array("idCit","NamCit");
$table="city";
RegisterPackDraw::getInstance()->DrawSelect($table,$campos_table,$NAMEbox);

$operator_fields = array("idOpe", "NamOpe");
RegisterPackDraw::getInstance()->DrawSelect("operador",$operator_fields,"Operador");

$oficinas_fields = array("idOfi", "DirOfi");
RegisterPackDraw::getInstance()->DrawSelect("oficinas",$oficinas_fields,"Oficina");

$extensions_fields = array("idExt", "NomExt");
RegisterPackDraw::getInstance()->DrawMultipleSelect("extensiones",$extensions_fields,"Extensiones");


RegisterPackDraw::getInstance()->DrawSubmmit("Registrar");
RegisterPackDraw::getInstance()->DrawFoot();
include_once("$ruta/elements/foot.tpl");


?>


<div>

</div>